package com.rtline.business.service;

import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rtline.business.common.Result;
import com.rtline.business.model.UserEntity;

/**
 * <p>UserService .
 *
 * <p>change history:
 *
 * <pre>
 * date         defect       person          comments
 * --------------------------------------------------------------------------------
 * 2025/5/17    ********     Tao Ren    create file.
 * </pre>
 *
 * @author Tao Ren
 * @date 2025/5/17 21:12
 */
public interface UserService extends IService<UserEntity> {
    // 可以在这里添加额外的业务方法
    UserEntity getUserById(Long id);

    void insertUser(UserEntity user);

    List<UserEntity> findLimit(int i, int pageSize);

    Page<UserEntity> pageList(Page<UserEntity> page, Map<String, Object> params);

    Result operate(Map<String, Object> params);

    CompletableFuture<String> getUserData(String userId);

    void updateBalance(int userId);

    void testTransactional();

    void testTransactional2();
}
